To build p4, position yourself in the p4 directory and type:
where <machine> is one of the machine names listed in
p4/util/machines, currently:
machines
For example:
The all is optional, for example
This will create a machine-dependent Makefile in each subdirectory,
make the p4 library, and compile and link a subset of the examples.
To add a new machine type, or to change the characteristic parameters associated with an existing one, you can edit the file p4/util/defs.all.
To save disk space, various intermediate object files can be removed with
The system can be restored to its original, machine-independent state with
Note that this removes the machine-dependent Makefiles in each directory, so
the operation is not idempotent.
It is also possible to install (or clean) only some of the directories:
To install only the Makefiles in all subdirectories, use:
To install the necessary library and include files in a
directory everything that is needed to compile and link p4 programs,
do:
This will create a p4 directory in <dir>, build a
minimal set of directories, copy the relevant .a and .h files
into it, and test the installation by mking a small set of examples.
testing Getting Started for instructions on how to run some example programs after you have installed p4. Installing the Documentation,Examples included with the Distribution,Installing the p4 System,Installing p4